<?php 
global $dir_tpl, $tb_fix, $temp, $anyDB;  
$shopurl = get_data('shop_url','config_values');
$temp->assign("shopurl",$shopurl);
$temp->assign( 'base_tpl', "".$dir_tpl."" ); 
$sql = "select title,sid,images from ".$tb_fix."_news_post where catid =1 ORDER BY sid DESC LIMIT 0,5" ;
$q = $anyDB->query($sql);
$r = $anyDB->getAll($q);
foreach($r as $k=>$v){
    $r[$k]['title_url'] = convertText($v['title']);
}
$temp->assign('news',$r);
$temp->display("$dir_tpl/blocks/tintuc_home/index.mct"); 
?> 
